<script setup>
import { inject } from 'vue'

const themeColor = inject('theme-color')
const count = inject('count')
const changeCount = inject('changeCount')
</script>

<template>
  <div class="border3">
    底层组件 {{ themeColor }} - {{ count }}
    <button @click="changeCount(500)">更新 count</button>
  </div>
  
</template>

<style scoped>
.border3 {
  border: 1px #3f85ed solid;
  padding: 20px;
  margin: 20px;
}
</style>